/*
 * @Author: ૮₍ ˙О˙₎ა
 * @Date: 2023-08-08 21:18:01
 */
/**
 * @description 进行本地存储操作的管理
 */

const tokenName = 'token'

// 存储token
export const saveStorage = (data: any) => {
  localStorage.setItem(tokenName, data)
}

// 获取token
export const getStorage = () => {
  return localStorage.getItem(tokenName)
}

// 清除token
export const clearStorage = () => {
  localStorage.clear()
}
